﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.

// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	:   FI.Net Application Framework
// COMPONENT ID :   FI.Core
// COMPONENT DESC:  
//
// CREATED DATE/BY:  18 Aug 2018 / Tian Mi 
//
// REVISION HISTORY:	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================

#endregion

using System;

namespace FI.Core
{
    /// <summary>
    /// A custom attribute used to indicate automatic exception handling is enabled or disabled for the target class or method.
    /// </summary>
    [AttributeUsage( AttributeTargets.Class| AttributeTargets.Method)]
    public sealed class HandleExceptionAttribute: Attribute
    {
        #region Properties
        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="HandleExceptionAttribute"/> is supress.
        /// </summary>
        /// <value>
        ///   <c>true</c> if supress; otherwise, <c>false</c>.
        /// </value>
        public bool Suppress { get; set; }
        #endregion
    }
}
